<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<form action="./mReport" method="post">
UserID:<input type="text" name="userid">
<br><font color="grey">(eg:2009-01-01)</font>
<br><input type="submit" value="Annual" name="Annual">
<input type="submit" value="Medical" name="Medical">
<input type="submit" value="All" name="All">
<h2>Leave Detail information</h2>
<table border=1>
<tr><td>User Name</td>
<td>Duration</td>
<td>Reason</td>
<td>Status</td>
<td>Application Date</td>
<td>Reject Reason</td>
</tr>
<c:forEach items="${requestScope.LeaveInfo}" var="Leave">
<tr>

<td>${Leave._userName}</td>
<td>${Leave._duration}</td>
<td>${Leave._reason}</td>
<td>${Leave._status}</td>
<td>${Leave._applicationDate}</td>
<td>${Leave._rejectReason}</td> 
 </tr>
 </c:forEach>
</table>
<center>
<input type="submit" value="Print" name="Print">
</center>
</form>
</body>
</html>